#include "stdafx.h"
#include "../../Include/Bse/BPAIOPACK.h"

double PI = asin((double)1.0)*2;

char* strcpywithoutwhitespace(char *strDst, const char *strSrc)
{
	char buffer[32];
	char* strMarker = "";
	strcpy(buffer,strSrc);
	int nStrLen = strlen(buffer);
	int i;

	for (i=0;i<nStrLen;i++)
	{
		if (buffer[i]!=' ')
		{
			strMarker = &buffer[i];
			break;
		}
	}

	if (i!=nStrLen)
	{
		for (i=nStrLen-1;i>-1;i--)
		{
			if (buffer[i]!=' ')
			{
				buffer[i+1] = '\0';
				break;
			}
		}
	}

	strcpy(strDst,strMarker);

	return strDst;
}